package ${sourceBasePackage}.entity<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* ${description}实体类
* @author ${author}
*/
@Data
@TableName("${tableName}")
public class ${entityName} implements Serializable {

	private static final long serialVersionUID = 1L;

	<#list fields as po>
	/** ${po.description} */
	<#if po.primaryKey == 'Y'>
	@TableId(value = "${po.fieldName}", type = IdType.ASSIGN_ID)
	<#else>
	@TableField("${po.fieldName}")
	</#if>
	private ${po.propertyType} ${po.propertyName};
	</#list>

}
